class User < ActiveRecord::Base
  # Include default devise modules. Others available are:
  # :token_authenticatable, :confirmable,
  # :lockable, :timeoutable and :omniauthable
  devise :database_authenticatable, :registerable,
         :recoverable, :rememberable, :trackable, :validatable,:timeoutable

  # Setup accessible (or protected) attributes for your model
  attr_accessible :role,:username,:email, :password, :password_confirmation, :remember_me

  # attr_accessible :title, :body
  has_one :user_profile, :dependent => :delete
  has_many :requests, :dependent => :delete_all
  has_many :comments, :dependent => :delete_all
end
